home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 3006 / 3006.xpi / chrome / dwhelper.jar / content / counter-label.xml < prev    next >
Extensible Markup Language  |  2010-01-15  |  1KB  |  40 lines

  1. <?xml version="1.0"?>
  2. <!-- *****************************************************************************
  3.  *            Copyright (c) 2006-2009 Michel Gutierrez. All Rights Reserved.
  4.  ****************************************************************************** -->
  5. <!DOCTYPE bindings SYSTEM "chrome://dwhelper/locale/dwhelper.dtd" >
  6.  
  7. <bindings xmlns="http://www.mozilla.org/xbl"
  8.     xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  9.     xmlns:html="http://www.w3.org/1999/xhtml"
  10.     xmlns:xbl="http://www.mozilla.org/xbl">
  11.  
  12.     <binding id="CounterLabel" extends="widgets.xml#widget">
  13.  
  14.         <xbl:content xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  15.             <label anonid="xLabel" xbl:inherits="value"/>
  16.             <children style="display: none;"/>
  17.         </xbl:content>
  18.  
  19.         <implementation>
  20.  
  21.             <constructor>
  22.                 <![CDATA[
  23. this.dlMgr=Components.classes["@downloadhelper.net/download-manager;1"]
  24.     .getService(Components.interfaces.dhIDownloadMgr);
  25. this.dlMgr.registerCounter(this.xLabel);
  26.                 ]]>
  27.             </constructor>
  28.                         
  29.             <destructor>
  30.                 <![CDATA[
  31. this.dlMgr.unregisterCounter(this.xLabel);
  32.                 ]]>
  33.             </destructor>
  34.                         
  35.         </implementation>
  36.                 
  37.     </binding>
  38.  
  39. </bindings>
  40.